package com.hna.iot.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author cdw
 * @since 2018-11-06
 */
@TableName("iot_device")
public class IotDevice extends Model<IotDevice> {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	private Long id;

	/**
	 * 
	 */
	@TableField(value="create_time")
	private Date createTime;

	/**
	 * 
	 */
	@TableField(value="update_time")
	private Date updateTime;

	/**
	 * 
	 */
	private String descr;

	/**
	 * 
	 */
	@TableField(value="device_no")
	private String deviceNo;

	/**
	 * 
	 */
	@TableField(value="device_name")
	private String deviceName;

	/**
	 * 
	 */
	@TableField(value="first_login_time")
	private Date firstLoginTime;

	/**
	 * 
	 */
	@TableField(value="mqtt_user")
	private String mqttUser;

	/**
	 * 
	 */
	@TableField(value="mqtt_passwd")
	private String mqttPasswd;

	/**
	 * 
	 */
	@TableField(value="is_admin")
	private String isAdmin;

	/**
	 * 
	 */
	@TableField(value="device_key")
	private String deviceKey;

	/**
	 * 1：设备；2：网关
	 */
	@TableField(value="is_gateway")
	private Integer isGateway;

	/**
	 * 
	 */
	@TableField(value="ssl_file")
	private String sslFile;

	/**
	 * 
	 */
	@TableField(value="product_id")
	private Long productId;

	/**
	 * 
	 */
	@TableField(value="device_type_id")
	private Long deviceTypeId;

	/**
	 * 
	 */
	@TableField(value="device_type_name")
	private String deviceTypeName;



	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getDescr() {
		return descr;
	}

	public void setDescr(String descr) {
		this.descr = descr;
	}

	public String getDeviceNo() {
		return deviceNo;
	}

	public void setDeviceNo(String deviceNo) {
		this.deviceNo = deviceNo;
	}

	public String getDeviceName() {
		return deviceName;
	}

	public void setDeviceName(String deviceName) {
		this.deviceName = deviceName;
	}

	public Date getFirstLoginTime() {
		return firstLoginTime;
	}

	public void setFirstLoginTime(Date firstLoginTime) {
		this.firstLoginTime = firstLoginTime;
	}

	public String getMqttUser() {
		return mqttUser;
	}

	public void setMqttUser(String mqttUser) {
		this.mqttUser = mqttUser;
	}

	public String getMqttPasswd() {
		return mqttPasswd;
	}

	public void setMqttPasswd(String mqttPasswd) {
		this.mqttPasswd = mqttPasswd;
	}

	public String getIsAdmin() {
		return isAdmin;
	}

	public void setIsAdmin(String isAdmin) {
		this.isAdmin = isAdmin;
	}

	public String getDeviceKey() {
		return deviceKey;
	}

	public void setDeviceKey(String deviceKey) {
		this.deviceKey = deviceKey;
	}

	public Integer getIsGateway() {
		return isGateway;
	}

	public void setIsGateway(Integer isGateway) {
		this.isGateway = isGateway;
	}

	public String getSslFile() {
		return sslFile;
	}

	public void setSslFile(String sslFile) {
		this.sslFile = sslFile;
	}

	public Long getProductId() {
		return productId;
	}

	public void setProductId(Long productId) {
		this.productId = productId;
	}

	public Long getDeviceTypeId() {
		return deviceTypeId;
	}

	public void setDeviceTypeId(Long deviceTypeId) {
		this.deviceTypeId = deviceTypeId;
	}

	public String getDeviceTypeName() {
		return deviceTypeName;
	}

	public void setDeviceTypeName(String deviceTypeName) {
		this.deviceTypeName = deviceTypeName;
	}

	@Override
	protected Serializable pkVal() {
		// TODO Auto-generated method stub
		return null;
	}

}
